package com.tansun.easycare.rule.table.decisiontable.model;

import java.io.Serializable;

import com.alibaba.druid.util.StringUtils;
import com.tansun.easycare.rule.common.model.BaseModel;

/**
 * 决策表模型信息
 *
 * @author Lph
 */
public class DecisionTable extends BaseModel implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 709024010556887943L;
    public static String FILENAME = "/decisionTable/decisionTable.xml";
    /**
     * 是单一输出还是多输出
     */
    private String isSingle;


    public String getIsSingle() {
        return isSingle;
    }

    public void setIsSingle(String isSingle) {
        this.isSingle = isSingle;
    }

    /**
     * 初始化改条记录的修改内容
     */
    public void InitModifiedContent(DecisionTable tbl) throws Exception {
        super.InitModifiedContent(tbl);
        if (tbl == null) return;
        if (!StringUtils.isEmpty(tbl.getName()))
            this.setName(tbl.getName());
        if (!StringUtils.isEmpty(tbl.getIsSingle())) {
            this.setIsSingle(tbl.getIsSingle());
        }
    }
}